package com.hopu.v1.mapper.admin.verify;

import com.hopu.v1.pojo.verify.Approval;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * @Entity com.hopu.v1.pojo.verify.Approval
 */
public interface ApprovalMapper extends BaseMapper<Approval> {
    /**
     * 根据请假记录的id查询该请假同意状态
     * @param leaveRecordId
     * @return
     */
    List<Approval> selectLeaveRecordId (Integer leaveRecordId);

    /**
     * 根据请假记录id和审批人id修改审批状态
     * @param approval
     * @return
     */
    void updateApproval(Approval approval);

}




